/*
package com.bsdsma.fengheguaiapp.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

*/
/**
 * 顾客信息表
 *//*

@Data
@Entity
@Table(name = "customerInfo")
@TableName("customerInfo")
@KeySequence(dbType = DbType.MYSQL)
public class CustomerInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    */
/**
     * 主键ID 自增
     *//*

    @Id
    @Column(length = 20)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(type = IdType.AUTO)
    private Long id;
    @Column(name = "customerName", columnDefinition = "varchar(200) not null DEFAULT ''")
    private String customerName;
    @Column(name = "customerPass", columnDefinition = "varchar(200) not null DEFAULT ''")
    private String customerPass;
    @Column(name = "customerPhone", columnDefinition = "varchar(200) not null DEFAULT ''")
    private String customerPhone;
    @Column(name = "customerEmail", columnDefinition = "varchar(200) not null DEFAULT ''")
    private String customerEmail;
    */
/**
     * 创建时间
     *//*

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ct;
    */
/**
     * 更新时间
     *//*

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ut;

    */
/**
     * 0正常 -1删除
     *//*

    @Column(nullable = false)
    private Integer status;
}*/
package com.bsdsma.fengheguaiapp.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * 顾客信息表
 */
@Data
@TableName(value = "customerinfo")  // 注意：MySQL表名通常是小写的
public class CustomerInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID 自增
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 明确指定数据库列名
     */
    @TableField(value = "customer_name")
    private String customerName;

    @TableField(value = "customer_pass")
    private String customerPass;

    @TableField(value = "customer_phone")
    private String customerPhone;

    @TableField(value = "customer_email")
    private String customerEmail;

    /**
     * 创建时间
     */
    @TableField(value = "ct")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ct;

    /**
     * 更新时间
     */
    @TableField(value = "ut")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ut;

    /**
     * 0正常 -1删除
     */
    @TableField(value = "status")
    private Integer status;
}